<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php
            $custContactLogID = $_POST['ccPK'];
            include "Datasource.php";
            include "CustContactLog.php";
            include "CustContactLogDao.php";
            include "Employee.php";
            include "EmployeeDao.php";
            $conn = new Datasource("localhost","theanykey","root","");
            $ccDao = new CustContactLogDao();
            $custContact = $ccDao->getObject($conn, $custContactLogID);

            if($ccDao->delete($conn, $custContact))
            {
                 ?>
            <script type="text/javascript">
                   window.opener.location = window.opener.location;
                    window.close();
            </script>
                <?php
            }
            else
            {
                ?>
        <font style="color:red">There was an error in deleting this record. Please try again.</font>
        <br/>
        <br/>
        <input type="button" value="Close this Window" onchange="window.close()" />
                <?php
            }
        ?>
    </body>
</html>
